<?php

namespace app\admin\model;

use app\common\model\BaseModel;
use think\Model;

class GroupNode extends BaseModel
{

    public static function addNode($data): bool
    {
        return (new self)->save([
                                        'group_id' => $data['group_id'],
                                        'node'     => $data['href'],
                                        'title'    => $data['title'],
                                        'type'     => $data['menu_type']
                                ]);
    }
}